/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package streamer.de.marcovas;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;

/**
 *
 * @author bruno
 */
public class main {
    
    public static void main(String[] args) {
        Streamer stream = new Streamer();
        int i;
        int j;
      j=  Integer.parseInt(JOptionPane.showInputDialog("digite 2 para abrir o vlc:"));
        if(j==2){
      
        try {
            stream.start();
        } catch (Exception ex) {
            Logger.getLogger(main.class.getName()).log(Level.SEVERE, null, ex);
        }
   
        }
       i=  Integer.parseInt(JOptionPane.showInputDialog("digite 1 para matar o vlc:"));
       
       if(i==1){
       try {
            stream.stop();
        }catch (Exception ex) {
            ex.printStackTrace();
        }
   
    }
    
    
    
}
}